<?php
 
//Option Explicit;
 
//dim $strChatName, $intFrameHeight, $intChatTimeout;
 
//$strChatName = Request("ChatName");
//$intFrameHeight = Request("FrameHeight");
 
?>
<HTML>
<HEAD>
	<TITLE>Chat Room</TITLE>
<? include "style.php"; ?>
<SCRIPT LANGUAGE="JavaScript">
function logout() {
	if(document.mainForm.logout.value != "true") {
		document.mainForm.chatSubmit.value = "log out";
		document.mainForm.submit();
		}
	}
</SCRIPT>
</HEAD>

<BODY BGCOLOR="<? echo $strFrameColor; ?>" onUnload="logout()">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="100%"><TR><TD VALIGN="TOP" ALIGN="LEFT">
<HR SIZE=1>
Chat Menu
<HR SIZE=1>
<BR>
<SCRIPT LANGUAGE="JavaScript">
/* Maybe we'll use this later.
if(document.layers) {
	document.write('<LAYER NAME="chatNameLayer"><B><?=str_replace("'","\'",$strChatName)?></B></LAYER>');
	}
else if(document.all) {
	document.write('<DIV ID="chatNameDiv"><B><?=str_replace("'","\'",$strChatName)?></B></DIV>');
	}
*/
</SCRIPT>
<DIV ID="chatNameDiv"><B><? echo str_replace("'","\'",$strChatName); ?></B></DIV>
<BR>
Logged in at <? echo date("H:i:s");?>
<BR><BR>
<B>Settings:</B><BR>
<FORM NAME="mainForm" TARGET="inputFrame" ACTION="input.php" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="logout">
<INPUT TYPE="HIDDEN" NAME="chatSubmit">
<!--<INPUT TYPE="HIDDEN" NAME="chatName" onChange="layerWrite('chatNameLayer',null,'<B>' + this.value + '</B>')">-->
Font:
<SELECT NAME="Font" onChange="top.inputFrame.document.mainForm.Font.value=this.options[this.options.selectedIndex].text;">
<? WriteFonts() ?>
</SELECT><BR>
Size:
<SELECT NAME="Size" onChange="top.inputFrame.document.mainForm.Size.value=this.options[this.options.selectedIndex].text;">
<? WriteSizes() ?>
</SELECT><BR>
Color:
<SELECT NAME="Color" onChange="top.inputFrame.document.mainForm.Color.value=this.options[this.options.selectedIndex].text;">
<? WriteColors() ?>
</SELECT><BR>
<!--
<INPUT TYPE="CHECKBOX" NAME="Remember" <?if (strtoupper(Request.$Cookies["remember"]) == "TRUE") {?>CHECKED<?}?>>
Save
-->
</FORM>
</TD></TR>
<TR>
	<TD VALIGN="TOP">
<IFRAME SRC="chatpeople.php" NAME="peopleFrame" HEIGHT="<? echo $intFrameHeight; ?>" WIDTH="145">
</IFRAME>
	</TD>
</TR>
</TABLE>
</BODY>
</HTML>

